//
//  SecondViewController.m
//  test
//
//  Created by 任文超 on 14-8-4.
//  Copyright (c) 2014年 任文超. All rights reserved.
//

#import "SecondViewController.h"
#import "var.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // 导航标题
        UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake((sizeMain.width-160)/2, 0, 160, 40)];
        titleLabel.text = @"second";
        titleLabel.textAlignment = NSTextAlignmentCenter;
        titleLabel.textColor = [UIColor whiteColor];
        [titleLabel setBackgroundColor:[UIColor clearColor]];
        [titleLabel setFont: [UIFont fontWithName:@"Helvetica-Bold" size:21]];
        self.navigationItem.titleView = titleLabel;
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

@end
